package com.qst.express.config;

import com.qst.express.filter.LoginFilter;
import org.springframework.boot.web.servlet.FilterRegistrationBean;
import org.springframework.boot.web.servlet.RegistrationBean;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

import java.util.Arrays;

/**
 * @author:CoolTiger
 * @title: LoginFilterConfig
 * @projectName springboot-e
 * @description: TODO
 * @date:2022/11/01/00:16:26
 **/
@Configuration
public class LoginFilterConfig {
//    @Bean
//    public RegistrationBean myFilter(){
//        LoginFilter loginFilter = new LoginFilter();
//        FilterRegistrationBean filterRegistrationBean = new FilterRegistrationBean(loginFilter);
//        filterRegistrationBean.setUrlPatterns(Arrays.asList("/*"));
//        return filterRegistrationBean;
//    }

}
